<html>
<head><meta charset="utf-8"><title>Weird ICE with -C link-dead-code · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Weird.20ICE.20with.20-C.20link-dead-code.html">Weird ICE with -C link-dead-code</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="244216920"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Weird%20ICE%20with%20-C%20link-dead-code/near/244216920" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Manish Goregaokar <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Weird.20ICE.20with.20-C.20link-dead-code.html#244216920">(Jun 28 2021 at 23:23)</a>:</h4>
<p>I'm hoping we can fix <a href="https://github.com/rust-lang/rust/issues/86703">https://github.com/rust-lang/rust/issues/86703</a> but I have no idea what's going on here: it only occurs under -C link-dead-code. Do folks have pointers?</p>



<a name="244217025"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Weird%20ICE%20with%20-C%20link-dead-code/near/244217025" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Weird.20ICE.20with.20-C.20link-dead-code.html#244217025">(Jun 28 2021 at 23:25)</a>:</h4>
<p>looks like you hit good ol' <a href="https://github.com/rust-lang/rust/issues/62529">https://github.com/rust-lang/rust/issues/62529</a></p>



<a name="244226138"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Weird%20ICE%20with%20-C%20link-dead-code/near/244226138" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Manish Goregaokar <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Weird.20ICE.20with.20-C.20link-dead-code.html#244226138">(Jun 29 2021 at 02:20)</a>:</h4>
<p><span class="user-mention" data-user-id="211727">@Jonas Schievink  [he/him]</span> thanks! think <a href="https://github.com/rust-lang/rust/pull/85499">https://github.com/rust-lang/rust/pull/85499</a> is going to fix it?</p>



<a name="244226347"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Weird%20ICE%20with%20-C%20link-dead-code/near/244226347" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Manish Goregaokar <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Weird.20ICE.20with.20-C.20link-dead-code.html#244226347">(Jun 29 2021 at 02:25)</a>:</h4>
<p>iiinteresting</p>
<div class="codehilite"><pre><span></span><code>error: implementation of `Yokeable` is not general enough
  --&gt; foo.rs:31:7
   |
31 |     y.project(move |yk, _| yk.as_bytes())
   |       ^^^^^^^ implementation of `Yokeable` is not general enough
   |
   = note: `&amp;[u8]` must implement `Yokeable&lt;&#39;0&gt;`, for any lifetime `&#39;0`...
   = note: ...but `Yokeable&lt;&#39;_&gt;` is actually implemented for the type `&amp;&#39;static [u8]`
</code></pre></div>



<a name="244226359"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Weird%20ICE%20with%20-C%20link-dead-code/near/244226359" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Manish Goregaokar <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Weird.20ICE.20with.20-C.20link-dead-code.html#244226359">(Jun 29 2021 at 02:25)</a>:</h4>
<p>that error message is incorrect</p>



<a name="244226940"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Weird%20ICE%20with%20-C%20link-dead-code/near/244226940" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Manish Goregaokar <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Weird.20ICE.20with.20-C.20link-dead-code.html#244226940">(Jun 29 2021 at 02:37)</a>:</h4>
<p>left a comment, there's some fun stuff going on here</p>



<a name="244226944"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Weird%20ICE%20with%20-C%20link-dead-code/near/244226944" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Manish Goregaokar <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Weird.20ICE.20with.20-C.20link-dead-code.html#244226944">(Jun 29 2021 at 02:37)</a>:</h4>
<p>thanks again!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>